﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;
using System.Data.Entity;
using System.Web;

namespace CapokunMvcTest.Models
{


    [Serializable]
    ///model for our sql db
    public class Song
    {
		[Key]
        [Required]
        public string SongId { get; set; }
        //public HtmlString test { get; set; }

        public string SongId_fr { get; set; }

        public string SongId_en { get; set; }

        /// <summary>
        /// video/audio link, youtube, ssij, etc...
        /// </summary>
        public string Link { get; set; }

        [Required]
        public string Content { get; set; }

        public string Content_fr { get; set; }

        public string Content_en { get; set; }

        //public Song(string SongId, string Link, string Content, string Content_fr, string Content_en, string SubmittedBy)
        //{
        //    this.SongId = SongId;
        //    this.Link = Link;
        //    this.Content = Content;
        //    this.Content_fr = Content_fr;
        //    this.Content_en = Content_en;
        //    this.SubmittedBy = SubmittedBy;
        //    PartitionKey = SongId;
        //    RowKey = Guid.NewGuid().ToString();
        //}

        public Song()
        {
			//PartitionKey = SongId;
			//RowKey = Guid.NewGuid().ToString();
        }

        /// <summary>
        /// facebook username of submitter, if null=anonymous
        /// </summary>
        public string SubmittedBy { get; set; }
    }

}
